# 图书分发路由配置
from fastapi import APIRouter
 
myapi = APIRouter() # 创建路由
 
@myapi.get("/get")
async def get_test():
     return {"methods": "get方法"}
 
@myapi.post("/post")
async def post_test(name: str, age: int):
    print(name, age)
    return {"methods": "post方法"}
 
